import 'package:flutter/cupertino.dart';
import 'package:fluttertest/utils/helper.dart';

extension Context on BuildContext{
  Future<T?> routeTo<T extends Object?>(Type router){
    return Navigator.pushNamed(this, Helper.typeName(router));
  }
}